ruffle (someone's) hair

Translations
взъерошить (чьи-то) волосы
She playfully ruffled his hair as she walked by.
Она игриво взъерошила его волосы, проходя мимо.
Definitions
To tousle or mess up someone's hair playfully or affectionately, often as a gesture of endearment or teasing.